package com.opensns.test;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test);
        
        mTestSina = (Button) findViewById(R.id.button1);
        mTestRenren = (Button) findViewById(R.id.button2);
        mTestSina.setOnClickListener(mTestSinaClick);
        mTestRenren.setOnClickListener(mTestRenrenClick);
    }
	
	View.OnClickListener mTestSinaClick = new View.OnClickListener() {
		
		@Override
		public void onClick(View v) {
			Intent intent = new Intent("intent.action.TESTSINA");
			startActivity(intent);
		}
	};
	
	View.OnClickListener mTestRenrenClick = new View.OnClickListener() {
		
		@Override
		public void onClick(View v) {
			Intent intent = new Intent("intent.action.TESTRENREN");
			startActivity(intent);
		}
	};
    
    private Button mTestSina, mTestRenren;
    
}